.class public Lcom/jecelyin/editor/v2/ui/b;
.super Ljava/lang/Object;
.source "EditorDelegate.java"

# interfaces
.implements Lcom/jecelyin/editor/v2/common/a;
.implements Lcom/jecelyin/editor/v2/widget/text/d;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/jecelyin/editor/v2/ui/b$s;,
        Lcom/jecelyin/editor/v2/ui/b$r;
    }
.end annotation


# static fields
.field private static h:Z


# instance fields
.field private a:Landroid/content/Context;

.field public b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

.field private c:Lcom/jecelyin/editor/v2/view/EditorView;

.field private d:Lcom/jecelyin/editor/v2/ui/a;

.field private e:Lcom/jecelyin/editor/v2/ui/b$s;

.field private f:I

.field private g:Z


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method public constructor <init>(ILjava/io/File;IILjava/lang/String;)V
    .locals 1
    .param p2    # Ljava/io/File;
        .annotation build Landroidx/annotation/Nullable;
        .end annotation
    .end param

    .line 4
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x1

    .line 5
    iput-boolean v0, p0, Lcom/jecelyin/editor/v2/ui/b;->g:Z

    .line 6
    new-instance v0, Lcom/jecelyin/editor/v2/ui/b$s;

    invoke-direct {v0}, Lcom/jecelyin/editor/v2/ui/b$s;-><init>()V

    iput-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->e:Lcom/jecelyin/editor/v2/ui/b$s;

    .line 7
    iput p1, v0, Lcom/jecelyin/editor/v2/ui/b$s;->a:I

    .line 8
    iput-object p2, v0, Lcom/jecelyin/editor/v2/ui/b$s;->b:Ljava/io/File;

    .line 9
    iput-object p5, v0, Lcom/jecelyin/editor/v2/ui/b$s;->d:Ljava/lang/String;

    .line 10
    iput p3, v0, Lcom/jecelyin/editor/v2/ui/b$s;->i:I

    .line 11
    iput p4, v0, Lcom/jecelyin/editor/v2/ui/b$s;->j:I

    if-eqz p2, :cond_0

    .line 12
    invoke-virtual {p2}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object p1

    iput-object p1, v0, Lcom/jecelyin/editor/v2/ui/b$s;->c:Ljava/lang/String;

    :cond_0
    return-void
.end method

.method public constructor <init>(ILjava/lang/String;Landroid/os/Parcelable;)V
    .locals 1

    .line 13
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x1

    .line 14
    iput-boolean v0, p0, Lcom/jecelyin/editor/v2/ui/b;->g:Z

    .line 15
    new-instance v0, Lcom/jecelyin/editor/v2/ui/b$s;

    invoke-direct {v0}, Lcom/jecelyin/editor/v2/ui/b$s;-><init>()V

    iput-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->e:Lcom/jecelyin/editor/v2/ui/b$s;

    .line 16
    iput p1, v0, Lcom/jecelyin/editor/v2/ui/b$s;->a:I

    .line 17
    iput-object p2, v0, Lcom/jecelyin/editor/v2/ui/b$s;->c:Ljava/lang/String;

    .line 18
    iput-object p3, v0, Lcom/jecelyin/editor/v2/ui/b$s;->h:Landroid/os/Parcelable;

    return-void
.end method

.method public constructor <init>(ILjava/lang/String;Ljava/lang/CharSequence;)V
    .locals 1

    .line 19
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x1

    .line 20
    iput-boolean v0, p0, Lcom/jecelyin/editor/v2/ui/b;->g:Z

    .line 21
    new-instance v0, Lcom/jecelyin/editor/v2/ui/b$s;

    invoke-direct {v0}, Lcom/jecelyin/editor/v2/ui/b$s;-><init>()V

    iput-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->e:Lcom/jecelyin/editor/v2/ui/b$s;

    .line 22
    iput p1, v0, Lcom/jecelyin/editor/v2/ui/b$s;->a:I

    .line 23
    iput-object p2, v0, Lcom/jecelyin/editor/v2/ui/b$s;->c:Ljava/lang/String;

    if-eqz p3, :cond_0

    .line 24
    invoke-interface {p3}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object p1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    iput-object p1, v0, Lcom/jecelyin/editor/v2/ui/b$s;->e:Ljava/lang/String;

    return-void
.end method

.method public constructor <init>(Lcom/jecelyin/editor/v2/ui/b$s;)V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x1

    .line 2
    iput-boolean v0, p0, Lcom/jecelyin/editor/v2/ui/b;->g:Z

    .line 3
    iput-object p1, p0, Lcom/jecelyin/editor/v2/ui/b;->e:Lcom/jecelyin/editor/v2/ui/b$s;

    return-void
.end method

.method static synthetic a(Lcom/jecelyin/editor/v2/ui/b;)Lcom/jecelyin/editor/v2/ui/b$s;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/jecelyin/editor/v2/ui/b;->e:Lcom/jecelyin/editor/v2/ui/b$s;

    return-object p0
.end method

.method private a(Landroid/content/Context;Landroid/view/View;Ljava/util/List;)V
    .locals 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Landroid/view/View;",
            "Ljava/util/List<",
            "Lcom/jecelyin/editor/v2/view/menu/d;",
            ">;)V"
        }
    .end annotation

    if-eqz p3, :cond_2

    .line 134
    invoke-interface {p3}, Ljava/util/List;->size()I

    move-result v0

    if-gtz v0, :cond_0

    goto :goto_1

    .line 135
    :cond_0
    new-instance v0, Lcom/jecelyin/editor/v2/view/menu/CustomPopupMenu;

    const/4 v1, 0x5

    const/4 v2, 0x0

    invoke-direct {v0, p1, p2, v1, v2}, Lcom/jecelyin/editor/v2/view/menu/CustomPopupMenu;-><init>(Landroid/content/Context;Landroid/view/View;IZ)V

    .line 136
    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/view/menu/CustomPopupMenu;->a()Landroid/view/Menu;

    move-result-object p1

    .line 137
    invoke-interface {p3}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p2

    :goto_0
    invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z

    move-result p3

    if-eqz p3, :cond_1

    invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object p3

    check-cast p3, Lcom/jecelyin/editor/v2/view/menu/d;

    .line 138
    invoke-virtual {p3}, Lcom/jecelyin/editor/v2/view/menu/d;->b()I

    move-result v1

    invoke-virtual {p3}, Lcom/jecelyin/editor/v2/view/menu/d;->c()I

    move-result v3

    invoke-interface {p1, v2, v1, v2, v3}, Landroid/view/Menu;->add(IIII)Landroid/view/MenuItem;

    move-result-object v1

    invoke-virtual {p3}, Lcom/jecelyin/editor/v2/view/menu/d;->a()I

    move-result p3

    invoke-interface {v1, p3}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    goto :goto_0

    .line 139
    :cond_1
    new-instance p1, Lcom/jecelyin/editor/v2/ui/b$f;

    invoke-direct {p1, p0}, Lcom/jecelyin/editor/v2/ui/b$f;-><init>(Lcom/jecelyin/editor/v2/ui/b;)V

    invoke-virtual {v0, p1}, Lcom/jecelyin/editor/v2/view/menu/CustomPopupMenu;->a(Lcom/jecelyin/editor/v2/view/menu/CustomPopupMenu$b;)V

    .line 140
    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/view/menu/CustomPopupMenu;->b()V

    :cond_2
    :goto_1
    return-void
.end method

.method private a(Landroid/view/ActionMode;Landroid/view/Menu;)V
    .locals 9

    .line 74
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    if-nez v0, :cond_0

    return-void

    .line 75
    :cond_0
    invoke-interface {p2}, Landroid/view/Menu;->clear()V

    .line 76
    iget-object p2, p0, Lcom/jecelyin/editor/v2/ui/b;->a:Landroid/content/Context;

    invoke-static {p2}, Lcom/jecelyin/editor/v2/d;->a(Landroid/content/Context;)Lcom/jecelyin/editor/v2/d;

    move-result-object p2

    invoke-virtual {p2}, Lcom/jecelyin/editor/v2/d;->x()Z

    move-result p2

    .line 77
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->i()Z

    move-result v0

    .line 78
    iget-object v1, p0, Lcom/jecelyin/editor/v2/ui/b;->a:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    .line 79
    new-instance v2, Lcom/jecelyin/editor/v2/ui/b$o;

    iget-object v3, p0, Lcom/jecelyin/editor/v2/ui/b;->a:Landroid/content/Context;

    invoke-direct {v2, p0, v3, v1}, Lcom/jecelyin/editor/v2/ui/b$o;-><init>(Lcom/jecelyin/editor/v2/ui/b;Landroid/content/Context;Landroid/content/res/Resources;)V

    .line 80
    iget-object v3, p0, Lcom/jecelyin/editor/v2/ui/b;->a:Landroid/content/Context;

    invoke-static {v3}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v3

    sget v4, Lcom/jecelyin/editor/v2/k;->je_toolbar_action_mode_menu_bar:I

    invoke-virtual {v3, v4, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    .line 81
    invoke-virtual {p1, v2}, Landroid/view/ActionMode;->setCustomView(Landroid/view/View;)V

    .line 82
    sget v3, Lcom/jecelyin/editor/v2/j;->action_mode_bottom_title:I

    .line 83
    invoke-virtual {v2, v3}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    .line 84
    invoke-virtual {p0}, Lcom/jecelyin/editor/v2/ui/b;->h()Ljava/lang/CharSequence;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 85
    sget v3, Lcom/jecelyin/editor/v2/j;->action_mode_back_btn:I

    invoke-virtual {v2, v3}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v3

    .line 86
    new-instance v4, Lcom/jecelyin/editor/v2/ui/b$p;

    invoke-direct {v4, p0, p1}, Lcom/jecelyin/editor/v2/ui/b$p;-><init>(Lcom/jecelyin/editor/v2/ui/b;Landroid/view/ActionMode;)V

    invoke-virtual {v3, v4}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 87
    sget v3, Lcom/jecelyin/editor/v2/j;->action_mode_back_btn_icon:I

    invoke-virtual {v2, v3}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/ImageView;

    .line 88
    sget v4, Lcom/jecelyin/editor/v2/i;->je_toolbar_previous:I

    invoke-static {v1, v4}, Lcom/jecelyin/editor/v2/ui/e;->b(Landroid/content/res/Resources;I)Landroid/graphics/drawable/Drawable;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 89
    sget v3, Lcom/jecelyin/editor/v2/j;->action_mode_copy:I

    invoke-virtual {v2, v3}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v3

    const/4 v4, 0x0

    .line 90
    invoke-virtual {v3, v4}, Landroid/view/View;->setVisibility(I)V

    .line 91
    new-instance v5, Lcom/jecelyin/editor/v2/ui/b$q;

    invoke-direct {v5, p0}, Lcom/jecelyin/editor/v2/ui/b$q;-><init>(Lcom/jecelyin/editor/v2/ui/b;)V

    invoke-virtual {v3, v5}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 92
    sget v5, Lcom/jecelyin/editor/v2/j;->action_mode_copy_icon:I

    invoke-virtual {v2, v5}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/ImageView;

    .line 93
    sget v6, Lcom/jecelyin/editor/v2/j;->action_mode_copy_title:I

    invoke-virtual {v2, v6}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/TextView;

    .line 94
    sget v7, Lcom/jecelyin/editor/v2/i;->je_toolbar_copy_entirerow:I

    invoke-static {v1, v7}, Lcom/jecelyin/editor/v2/ui/e;->b(Landroid/content/res/Resources;I)Landroid/graphics/drawable/Drawable;

    move-result-object v7

    invoke-virtual {v5, v7}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    if-nez v0, :cond_1

    .line 95
    invoke-virtual {v3, v4}, Landroid/view/View;->setEnabled(Z)V

    .line 96
    iget-object v7, p0, Lcom/jecelyin/editor/v2/ui/b;->a:Landroid/content/Context;

    sget v8, Lcom/jecelyin/editor/v2/g;->je_c20_ffffff:I

    invoke-static {v7, v8}, Landroidx/core/content/ContextCompat;->getColor(Landroid/content/Context;I)I

    move-result v7

    invoke-virtual {v6, v7}, Landroid/widget/TextView;->setTextColor(I)V

    .line 97
    invoke-virtual {v5}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object v6

    invoke-static {v6}, Lcom/jecelyin/editor/v2/ui/e;->b(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;

    move-result-object v6

    invoke-virtual {v5, v6}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 98
    :cond_1
    sget v5, Lcom/jecelyin/editor/v2/j;->action_mode_select_all:I

    invoke-virtual {v2, v5}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v5

    .line 99
    new-instance v6, Lcom/jecelyin/editor/v2/ui/b$a;

    invoke-direct {v6, p0}, Lcom/jecelyin/editor/v2/ui/b$a;-><init>(Lcom/jecelyin/editor/v2/ui/b;)V

    invoke-virtual {v5, v6}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    if-nez v0, :cond_2

    .line 100
    invoke-virtual {v5}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v6

    check-cast v6, Landroid/widget/LinearLayout$LayoutParams;

    .line 101
    iget-object v7, p0, Lcom/jecelyin/editor/v2/ui/b;->a:Landroid/content/Context;

    const/high16 v8, 0x41400000    # 12.0f

    invoke-static {v7, v8}, Lcom/jecelyin/editor/v2/utils/h;->a(Landroid/content/Context;F)I

    move-result v7

    invoke-virtual {v6, v4, v4, v7, v4}, Landroid/widget/LinearLayout$LayoutParams;->setMargins(IIII)V

    .line 102
    invoke-virtual {v5, v6}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 103
    invoke-virtual {v3, v6}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 104
    :cond_2
    sget v3, Lcom/jecelyin/editor/v2/j;->action_mode_select_all_icon:I

    invoke-virtual {v2, v3}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/ImageView;

    .line 105
    sget v5, Lcom/jecelyin/editor/v2/i;->je_toolbar_checkall:I

    invoke-static {v1, v5}, Lcom/jecelyin/editor/v2/ui/e;->b(Landroid/content/res/Resources;I)Landroid/graphics/drawable/Drawable;

    move-result-object v5

    invoke-virtual {v3, v5}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 106
    sget v3, Lcom/jecelyin/editor/v2/j;->action_mode_paste:I

    invoke-virtual {v2, v3}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v3

    .line 107
    new-instance v5, Lcom/jecelyin/editor/v2/ui/b$b;

    invoke-direct {v5, p0, p1}, Lcom/jecelyin/editor/v2/ui/b$b;-><init>(Lcom/jecelyin/editor/v2/ui/b;Landroid/view/ActionMode;)V

    invoke-virtual {v3, v5}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 108
    sget p1, Lcom/jecelyin/editor/v2/j;->action_mode_paste_icon:I

    invoke-virtual {v2, p1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    .line 109
    sget v5, Lcom/jecelyin/editor/v2/j;->action_mode_paste_title:I

    invoke-virtual {v2, v5}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    .line 110
    sget v6, Lcom/jecelyin/editor/v2/i;->je_toolbar_paste:I

    invoke-static {v1, v6}, Lcom/jecelyin/editor/v2/ui/e;->b(Landroid/content/res/Resources;I)Landroid/graphics/drawable/Drawable;

    move-result-object v6

    invoke-virtual {p1, v6}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    if-eqz p2, :cond_3

    .line 111
    invoke-virtual {v3, v4}, Landroid/view/View;->setEnabled(Z)V

    .line 112
    iget-object v3, p0, Lcom/jecelyin/editor/v2/ui/b;->a:Landroid/content/Context;

    sget v6, Lcom/jecelyin/editor/v2/g;->je_c20_ffffff:I

    invoke-static {v3, v6}, Landroidx/core/content/ContextCompat;->getColor(Landroid/content/Context;I)I

    move-result v3

    invoke-virtual {v5, v3}, Landroid/widget/TextView;->setTextColor(I)V

    .line 113
    invoke-virtual {p1}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object v3

    invoke-static {v3}, Lcom/jecelyin/editor/v2/ui/e;->b(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;

    move-result-object v3

    invoke-virtual {p1, v3}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    :cond_3
    if-eqz v0, :cond_4

    if-nez p2, :cond_4

    .line 114
    sget p1, Lcom/jecelyin/editor/v2/j;->action_mode_cut:I

    invoke-virtual {v2, p1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object p1

    .line 115
    invoke-virtual {p1, v4}, Landroid/view/View;->setVisibility(I)V

    .line 116
    new-instance v3, Lcom/jecelyin/editor/v2/ui/b$c;

    invoke-direct {v3, p0}, Lcom/jecelyin/editor/v2/ui/b$c;-><init>(Lcom/jecelyin/editor/v2/ui/b;)V

    invoke-virtual {p1, v3}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 117
    sget p1, Lcom/jecelyin/editor/v2/j;->action_mode_cut_icon:I

    invoke-virtual {v2, p1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    .line 118
    sget v3, Lcom/jecelyin/editor/v2/i;->je_toolbar_cut:I

    invoke-static {v1, v3}, Lcom/jecelyin/editor/v2/ui/e;->b(Landroid/content/res/Resources;I)Landroid/graphics/drawable/Drawable;

    move-result-object v3

    invoke-virtual {p1, v3}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    :cond_4
    if-eqz v0, :cond_7

    .line 119
    sget p1, Lcom/jecelyin/editor/v2/j;->action_mode_search:I

    invoke-virtual {v2, p1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object p1

    .line 120
    invoke-virtual {p1, v4}, Landroid/view/View;->setVisibility(I)V

    .line 121
    new-instance v3, Lcom/jecelyin/editor/v2/ui/b$d;

    invoke-direct {v3, p0}, Lcom/jecelyin/editor/v2/ui/b$d;-><init>(Lcom/jecelyin/editor/v2/ui/b;)V

    invoke-virtual {p1, v3}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 122
    sget p1, Lcom/jecelyin/editor/v2/j;->action_mode_search_icon:I

    invoke-virtual {v2, p1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    .line 123
    sget v3, Lcom/jecelyin/editor/v2/i;->je_toolbar_search:I

    invoke-static {v1, v3}, Lcom/jecelyin/editor/v2/ui/e;->b(Landroid/content/res/Resources;I)Landroid/graphics/drawable/Drawable;

    move-result-object v3

    invoke-virtual {p1, v3}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 124
    new-instance p1, Ljava/util/ArrayList;

    invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V

    if-nez p2, :cond_6

    .line 125
    new-instance p2, Lcom/jecelyin/editor/v2/view/menu/d;

    sget v3, Lcom/jecelyin/editor/v2/j;->je_m_convert_to_uppercase:I

    sget v5, Lcom/jecelyin/editor/v2/m;->je_convert_to_uppercase:I

    sget v6, Lcom/jecelyin/editor/v2/i;->je_m_uppercase:I

    invoke-direct {p2, v3, v5, v6}, Lcom/jecelyin/editor/v2/view/menu/d;-><init>(III)V

    invoke-interface {p1, p2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 126
    new-instance p2, Lcom/jecelyin/editor/v2/view/menu/d;

    sget v3, Lcom/jecelyin/editor/v2/j;->je_m_convert_to_lowercase:I

    sget v5, Lcom/jecelyin/editor/v2/m;->je_convert_to_lowercase:I

    sget v6, Lcom/jecelyin/editor/v2/i;->je_m_lowercase:I

    invoke-direct {p2, v3, v5, v6}, Lcom/jecelyin/editor/v2/view/menu/d;-><init>(III)V

    invoke-interface {p1, p2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 127
    new-instance p2, Lcom/jecelyin/editor/v2/view/menu/d;

    sget v3, Lcom/jecelyin/editor/v2/j;->je_m_duplication:I

    if-eqz v0, :cond_5

    sget v0, Lcom/jecelyin/editor/v2/m;->je_duplication_text:I

    goto :goto_0

    :cond_5
    sget v0, Lcom/jecelyin/editor/v2/m;->je_duplication_line:I

    :goto_0
    sget v5, Lcom/jecelyin/editor/v2/i;->je_m_duplication:I

    invoke-direct {p2, v3, v0, v5}, Lcom/jecelyin/editor/v2/view/menu/d;-><init>(III)V

    invoke-interface {p1, p2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 128
    :cond_6
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result p2

    if-lez p2, :cond_7

    .line 129
    sget p2, Lcom/jecelyin/editor/v2/j;->action_mode_more_btn:I

    invoke-virtual {v2, p2}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object p2

    .line 130
    invoke-virtual {p2, v4}, Landroid/view/View;->setVisibility(I)V

    .line 131
    new-instance v0, Lcom/jecelyin/editor/v2/ui/b$e;

    invoke-direct {v0, p0, p2, p1}, Lcom/jecelyin/editor/v2/ui/b$e;-><init>(Lcom/jecelyin/editor/v2/ui/b;Landroid/view/View;Ljava/util/List;)V

    invoke-virtual {p2, v0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 132
    sget p1, Lcom/jecelyin/editor/v2/j;->action_mode_more_btn_icon:I

    invoke-virtual {v2, p1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    .line 133
    sget p2, Lcom/jecelyin/editor/v2/i;->je_toolbar_more:I

    invoke-static {v1, p2}, Lcom/jecelyin/editor/v2/ui/e;->b(Landroid/content/res/Resources;I)Landroid/graphics/drawable/Drawable;

    move-result-object p2

    invoke-virtual {p1, p2}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    :cond_7
    return-void
.end method

.method static synthetic a(Lcom/jecelyin/editor/v2/ui/b;Landroid/content/Context;Landroid/view/View;Ljava/util/List;)V
    .locals 0

    .line 4
    invoke-direct {p0, p1, p2, p3}, Lcom/jecelyin/editor/v2/ui/b;->a(Landroid/content/Context;Landroid/view/View;Ljava/util/List;)V

    return-void
.end method

.method static synthetic a(Lcom/jecelyin/editor/v2/ui/b;Landroid/view/ActionMode;Landroid/view/Menu;)V
    .locals 0

    .line 2
    invoke-direct {p0, p1, p2}, Lcom/jecelyin/editor/v2/ui/b;->a(Landroid/view/ActionMode;Landroid/view/Menu;)V

    return-void
.end method

.method private a(Ljava/lang/String;)V
    .locals 3

    .line 60
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->d:Lcom/jecelyin/editor/v2/ui/a;

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/ui/a;->b()Ljava/io/File;

    move-result-object v0

    if-nez v0, :cond_0

    .line 61
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/b;->a:Landroid/content/Context;

    sget v0, Lcom/jecelyin/editor/v2/m;->je_please_save_as_file_first:I

    invoke-static {p1, v0}, Lcom/jecelyin/common/utils/e;->b(Landroid/content/Context;I)V

    return-void

    .line 62
    :cond_0
    iget-object v1, p0, Lcom/jecelyin/editor/v2/ui/b;->d:Lcom/jecelyin/editor/v2/ui/a;

    invoke-virtual {v1}, Lcom/jecelyin/editor/v2/ui/a;->f()Z

    move-result v1

    if-eqz v1, :cond_1

    .line 63
    new-instance v1, Lcom/jecelyin/common/widget/dialog/a$c;

    iget-object v2, p0, Lcom/jecelyin/editor/v2/ui/b;->a:Landroid/content/Context;

    invoke-direct {v1, v2}, Lcom/jecelyin/common/widget/dialog/a$c;-><init>(Landroid/content/Context;)V

    sget v2, Lcom/jecelyin/editor/v2/m;->je_document_changed:I

    .line 64
    invoke-virtual {v1, v2}, Lcom/jecelyin/common/widget/dialog/a$c;->f(I)Lcom/jecelyin/common/widget/dialog/a$c;

    sget v2, Lcom/jecelyin/editor/v2/m;->je_give_up_document_changed_message:I

    .line 65
    invoke-virtual {v1, v2}, Lcom/jecelyin/common/widget/dialog/a$c;->a(I)Lcom/jecelyin/common/widget/dialog/a$c;

    sget v2, Lcom/jecelyin/editor/v2/m;->je_cancel:I

    .line 66
    invoke-virtual {v1, v2}, Lcom/jecelyin/common/widget/dialog/a$c;->d(I)Lcom/jecelyin/common/widget/dialog/a$c;

    sget v2, Lcom/jecelyin/editor/v2/m;->je_ok:I

    .line 67
    invoke-virtual {v1, v2}, Lcom/jecelyin/common/widget/dialog/a$c;->b(I)Lcom/jecelyin/common/widget/dialog/a$c;

    new-instance v2, Lcom/jecelyin/editor/v2/ui/b$l;

    invoke-direct {v2, p0, v0, p1}, Lcom/jecelyin/editor/v2/ui/b$l;-><init>(Lcom/jecelyin/editor/v2/ui/b;Ljava/io/File;Ljava/lang/String;)V

    .line 68
    invoke-virtual {v1, v2}, Lcom/jecelyin/common/widget/dialog/a$c;->a(Landroid/content/DialogInterface$OnClickListener;)Lcom/jecelyin/common/widget/dialog/a$c;

    .line 69
    invoke-virtual {v1}, Lcom/jecelyin/common/widget/dialog/a$c;->c()Lcom/jecelyin/common/widget/dialog/a;

    return-void

    .line 70
    :cond_1
    iget-object v1, p0, Lcom/jecelyin/editor/v2/ui/b;->d:Lcom/jecelyin/editor/v2/ui/a;

    invoke-virtual {v1, v0, p1}, Lcom/jecelyin/editor/v2/ui/a;->a(Ljava/io/File;Ljava/lang/String;)V

    return-void
.end method

.method public static a(Z)V
    .locals 0

    .line 5
    sput-boolean p0, Lcom/jecelyin/editor/v2/ui/b;->h:Z

    return-void
.end method

.method static synthetic a(Lcom/jecelyin/editor/v2/ui/b;I)Z
    .locals 0

    .line 3
    invoke-direct {p0, p1}, Lcom/jecelyin/editor/v2/ui/b;->b(I)Z

    move-result p0

    return p0
.end method

.method static synthetic b(Lcom/jecelyin/editor/v2/ui/b;)Lcom/jecelyin/editor/v2/ui/a;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/jecelyin/editor/v2/ui/b;->d:Lcom/jecelyin/editor/v2/ui/a;

    return-object p0
.end method

.method private b(I)Z
    .locals 2

    .line 4
    sget v0, Lcom/jecelyin/editor/v2/j;->je_m_find_replace:I

    const/4 v1, 0x1

    if-ne p1, v0, :cond_0

    .line 5
    new-instance p1, Lcom/jecelyin/editor/v2/common/Command;

    sget-object v0, Lcom/jecelyin/editor/v2/common/Command$CommandEnum;->FIND:Lcom/jecelyin/editor/v2/common/Command$CommandEnum;

    invoke-direct {p1, v0}, Lcom/jecelyin/editor/v2/common/Command;-><init>(Lcom/jecelyin/editor/v2/common/Command$CommandEnum;)V

    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/ui/b;->a(Lcom/jecelyin/editor/v2/common/Command;)Z

    return v1

    .line 6
    :cond_0
    sget v0, Lcom/jecelyin/editor/v2/j;->je_m_convert_to_uppercase:I

    if-eq p1, v0, :cond_3

    sget v0, Lcom/jecelyin/editor/v2/j;->je_m_convert_to_lowercase:I

    if-ne p1, v0, :cond_1

    goto :goto_0

    .line 7
    :cond_1
    sget v0, Lcom/jecelyin/editor/v2/j;->je_m_duplication:I

    if-ne p1, v0, :cond_2

    .line 8
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->e()V

    return v1

    :cond_2
    const/4 p1, 0x0

    return p1

    .line 9
    :cond_3
    :goto_0
    invoke-direct {p0, p1}, Lcom/jecelyin/editor/v2/ui/b;->c(I)V

    return v1
.end method

.method static synthetic c(Lcom/jecelyin/editor/v2/ui/b;)Landroid/content/Context;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/jecelyin/editor/v2/ui/b;->a:Landroid/content/Context;

    return-object p0
.end method

.method private c(I)V
    .locals 2

    .line 3
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    if-eqz v0, :cond_1

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->i()Z

    move-result v0

    if-nez v0, :cond_0

    goto :goto_0

    .line 4
    :cond_0
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    new-instance v1, Lcom/jecelyin/editor/v2/ui/b$g;

    invoke-direct {v1, p0, p1}, Lcom/jecelyin/editor/v2/ui/b$g;-><init>(Lcom/jecelyin/editor/v2/ui/b;I)V

    invoke-virtual {v0, v1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->d(Lcom/jecelyin/editor/v2/widget/text/c;)V

    :cond_1
    :goto_0
    return-void
.end method

.method private r()V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->d:Lcom/jecelyin/editor/v2/ui/a;

    if-eqz v0, :cond_0

    return-void

    .line 2
    :cond_0
    new-instance v0, Lcom/jecelyin/editor/v2/ui/a;

    iget-object v1, p0, Lcom/jecelyin/editor/v2/ui/b;->a:Landroid/content/Context;

    invoke-direct {v0, v1, p0}, Lcom/jecelyin/editor/v2/ui/a;-><init>(Landroid/content/Context;Lcom/jecelyin/editor/v2/ui/b;)V

    iput-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->d:Lcom/jecelyin/editor/v2/ui/a;

    .line 3
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    iget-object v1, p0, Lcom/jecelyin/editor/v2/ui/b;->a:Landroid/content/Context;

    invoke-static {v1}, Lcom/jecelyin/editor/v2/d;->a(Landroid/content/Context;)Lcom/jecelyin/editor/v2/d;

    move-result-object v1

    invoke-virtual {v1}, Lcom/jecelyin/editor/v2/d;->x()Z

    move-result v1

    invoke-virtual {v0, v1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->setReadOnly(Z)V

    .line 4
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    new-instance v1, Lcom/jecelyin/editor/v2/ui/b$r;

    const/4 v2, 0x0

    invoke-direct {v1, p0, v2}, Lcom/jecelyin/editor/v2/ui/b$r;-><init>(Lcom/jecelyin/editor/v2/ui/b;Lcom/jecelyin/editor/v2/ui/b$i;)V

    invoke-virtual {v0, v1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->setCustomSelectionActionModeCallback(Landroid/view/ActionMode$Callback;)V

    .line 5
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->e:Lcom/jecelyin/editor/v2/ui/b$s;

    iget-object v1, v0, Lcom/jecelyin/editor/v2/ui/b$s;->b:Ljava/io/File;

    if-eqz v1, :cond_1

    .line 6
    iget-object v2, p0, Lcom/jecelyin/editor/v2/ui/b;->d:Lcom/jecelyin/editor/v2/ui/a;

    iget-object v0, v0, Lcom/jecelyin/editor/v2/ui/b$s;->d:Ljava/lang/String;

    invoke-virtual {v2, v1, v0}, Lcom/jecelyin/editor/v2/ui/a;->a(Ljava/io/File;Ljava/lang/String;)V

    goto :goto_0

    .line 7
    :cond_1
    iget-object v0, v0, Lcom/jecelyin/editor/v2/ui/b$s;->e:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_2

    .line 8
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    iget-object v1, p0, Lcom/jecelyin/editor/v2/ui/b;->e:Lcom/jecelyin/editor/v2/ui/b$s;

    iget-object v1, v1, Lcom/jecelyin/editor/v2/ui/b$s;->e:Ljava/lang/String;

    invoke-virtual {v0, v2, v1, v2}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Ljava/lang/String;Ljava/lang/CharSequence;Lcom/jecelyin/editor/v2/widget/text/c;)V

    .line 9
    :cond_2
    :goto_0
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    invoke-virtual {v0, p0}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Lcom/jecelyin/editor/v2/widget/text/d;)V

    .line 10
    invoke-virtual {p0}, Lcom/jecelyin/editor/v2/ui/b;->k()V

    .line 11
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->e:Lcom/jecelyin/editor/v2/ui/b$s;

    iget-object v0, v0, Lcom/jecelyin/editor/v2/ui/b$s;->h:Landroid/os/Parcelable;

    if-eqz v0, :cond_3

    .line 12
    invoke-static {v0, p0}, Lcom/jecelyin/editor/v2/ui/c;->a(Landroid/os/Parcelable;Lcom/jecelyin/editor/v2/ui/b;)V

    :cond_3
    return-void
.end method

.method private s()V
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->a:Landroid/content/Context;

    check-cast v0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;

    .line 2
    sget v1, Lcom/jecelyin/editor/v2/j;->je_m_save:I

    invoke-virtual {p0}, Lcom/jecelyin/editor/v2/ui/b;->i()Z

    move-result v2

    const/4 v3, 0x2

    if-eqz v2, :cond_0

    const/4 v2, 0x0

    goto :goto_0

    :cond_0
    const/4 v2, 0x2

    :goto_0
    invoke-virtual {v0, v1, v2}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->a(II)V

    .line 3
    sget v1, Lcom/jecelyin/editor/v2/j;->je_m_undo:I

    invoke-virtual {v0, v1, v3}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->a(II)V

    .line 4
    sget v1, Lcom/jecelyin/editor/v2/j;->je_m_redo:I

    invoke-virtual {v0, v1, v3}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->a(II)V

    .line 5
    iget-object v1, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    if-eqz v1, :cond_1

    .line 6
    new-instance v2, Lcom/jecelyin/editor/v2/ui/b$m;

    invoke-direct {v2, p0, v0}, Lcom/jecelyin/editor/v2/ui/b$m;-><init>(Lcom/jecelyin/editor/v2/ui/b;Lcom/jecelyin/editor/v2/ui/JeEditorActivity;)V

    invoke-virtual {v1, v2}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->b(Lcom/jecelyin/editor/v2/widget/text/c;)V

    .line 7
    iget-object v1, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    new-instance v2, Lcom/jecelyin/editor/v2/ui/b$n;

    invoke-direct {v2, p0, v0}, Lcom/jecelyin/editor/v2/ui/b$n;-><init>(Lcom/jecelyin/editor/v2/ui/b;Lcom/jecelyin/editor/v2/ui/JeEditorActivity;)V

    invoke-virtual {v1, v2}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Lcom/jecelyin/editor/v2/widget/text/c;)V

    .line 8
    :cond_1
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->a:Landroid/content/Context;

    check-cast v0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->A()Lcom/jecelyin/editor/v2/ui/g;

    move-result-object v0

    iget-object v1, p0, Lcom/jecelyin/editor/v2/ui/b;->e:Lcom/jecelyin/editor/v2/ui/b$s;

    iget v1, v1, Lcom/jecelyin/editor/v2/ui/b$s;->a:I

    invoke-virtual {v0, v1}, Lcom/jecelyin/editor/v2/ui/g;->b(I)V

    return-void
.end method


# virtual methods
.method public a()V
    .locals 1

    .line 72
    iget-boolean v0, p0, Lcom/jecelyin/editor/v2/ui/b;->g:Z

    if-eqz v0, :cond_0

    .line 73
    invoke-direct {p0}, Lcom/jecelyin/editor/v2/ui/b;->s()V

    :cond_0
    return-void
.end method

.method public a(I)V
    .locals 0

    if-eqz p1, :cond_0

    return-void

    .line 71
    :cond_0
    invoke-direct {p0}, Lcom/jecelyin/editor/v2/ui/b;->s()V

    return-void
.end method

.method public a(Lcom/jecelyin/editor/v2/view/EditorView;)V
    .locals 1

    .line 6
    invoke-virtual {p1}, Landroid/widget/RelativeLayout;->getContext()Landroid/content/Context;

    move-result-object v0

    iput-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->a:Landroid/content/Context;

    .line 7
    iput-object p1, p0, Lcom/jecelyin/editor/v2/ui/b;->c:Lcom/jecelyin/editor/v2/view/EditorView;

    .line 8
    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/view/EditorView;->getEditAreaView()Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    move-result-object v0

    iput-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    .line 9
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->a:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object v0

    iget v0, v0, Landroid/content/res/Configuration;->orientation:I

    iput v0, p0, Lcom/jecelyin/editor/v2/ui/b;->f:I

    .line 10
    invoke-virtual {p1, p0}, Lcom/jecelyin/editor/v2/view/EditorView;->setVisibilityChangedListener(Lcom/jecelyin/editor/v2/common/a;)V

    .line 11
    invoke-direct {p0}, Lcom/jecelyin/editor/v2/ui/b;->r()V

    return-void
.end method

.method public a(Lcom/jecelyin/editor/v2/widget/text/c;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/jecelyin/editor/v2/widget/text/c<",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .line 12
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    invoke-virtual {v0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->d(Lcom/jecelyin/editor/v2/widget/text/c;)V

    return-void
.end method

.method public a(Ljava/io/File;Ljava/lang/String;Lcom/jecelyin/editor/v2/common/c;)V
    .locals 1

    .line 13
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->d:Lcom/jecelyin/editor/v2/ui/a;

    if-nez v0, :cond_0

    return-void

    :cond_0
    if-nez p2, :cond_1

    .line 14
    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/ui/a;->a()Ljava/lang/String;

    move-result-object p2

    :cond_1
    invoke-virtual {v0, p1, p2, p3}, Lcom/jecelyin/editor/v2/ui/a;->a(Ljava/io/File;Ljava/lang/String;Lcom/jecelyin/editor/v2/common/c;)V

    return-void
.end method

.method public a(Lcom/jecelyin/editor/v2/common/Command;)Z
    .locals 4

    .line 15
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    const/4 v1, 0x0

    if-nez v0, :cond_0

    return v1

    .line 16
    :cond_0
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->a:Landroid/content/Context;

    invoke-static {v0}, Lcom/jecelyin/editor/v2/d;->a(Landroid/content/Context;)Lcom/jecelyin/editor/v2/d;

    move-result-object v0

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/d;->x()Z

    move-result v0

    .line 17
    sget-object v2, Lcom/jecelyin/editor/v2/ui/b$h;->a:[I

    iget-object v3, p1, Lcom/jecelyin/editor/v2/common/Command;->a:Lcom/jecelyin/editor/v2/common/Command$CommandEnum;

    invoke-virtual {v3}, Ljava/lang/Enum;->ordinal()I

    move-result v3

    aget v2, v2, v3

    packed-switch v2, :pswitch_data_0

    goto/16 :goto_0

    .line 18
    :pswitch_0
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a()V

    goto/16 :goto_0

    .line 19
    :pswitch_1
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->f()V

    goto/16 :goto_0

    .line 20
    :pswitch_2
    iget-object p1, p1, Lcom/jecelyin/editor/v2/common/Command;->c:Ljava/lang/Object;

    check-cast p1, Ljava/lang/String;

    invoke-direct {p0, p1}, Lcom/jecelyin/editor/v2/ui/b;->a(Ljava/lang/String;)V

    goto/16 :goto_0

    :pswitch_3
    if-eqz v0, :cond_1

    .line 21
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/b;->a:Landroid/content/Context;

    sget v0, Lcom/jecelyin/editor/v2/m;->je_readonly_mode_not_support_this_action:I

    invoke-static {p1, v0}, Lcom/jecelyin/common/utils/e;->b(Landroid/content/Context;I)V

    goto/16 :goto_0

    .line 22
    :cond_1
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    iget-object p1, p1, Lcom/jecelyin/editor/v2/common/Command;->c:Ljava/lang/Object;

    check-cast p1, Ljava/lang/CharSequence;

    invoke-virtual {v0, p1, v1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Ljava/lang/CharSequence;Z)V

    goto/16 :goto_0

    .line 23
    :pswitch_4
    iget-object p1, p1, Lcom/jecelyin/editor/v2/common/Command;->c:Ljava/lang/Object;

    check-cast p1, Lcom/jecelyin/editor/v2/c$a;

    .line 24
    iget-object v0, p1, Lcom/jecelyin/editor/v2/c$a;->b:Ljava/lang/String;

    .line 25
    iget-object v1, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    invoke-virtual {v1, v0}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->setMode(Ljava/lang/String;)V

    .line 26
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    iget-object p1, p1, Lcom/jecelyin/editor/v2/c$a;->a:Ljava/lang/String;

    invoke-virtual {v0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->setModeName(Ljava/lang/String;)V

    goto/16 :goto_0

    .line 27
    :pswitch_5
    iget-object v0, p1, Lcom/jecelyin/editor/v2/common/Command;->c:Ljava/lang/Object;

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    .line 28
    iget-object v1, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    invoke-virtual {v1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->getModeName()Ljava/lang/String;

    move-result-object v1

    if-eqz v0, :cond_2

    .line 29
    invoke-static {}, Lcom/jecelyin/editor/v2/b;->c()Z

    move-result v0

    if-nez v0, :cond_2

    invoke-static {v1}, Lcom/jecelyin/editor/v2/c;->a(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 30
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/b;->a:Landroid/content/Context;

    invoke-static {p1, v1}, Lcom/jecelyin/common/utils/e;->b(Landroid/content/Context;Ljava/lang/String;)V

    goto/16 :goto_0

    .line 31
    :cond_2
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    iget-object p1, p1, Lcom/jecelyin/editor/v2/common/Command;->c:Ljava/lang/Object;

    check-cast p1, Ljava/lang/Boolean;

    invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p1

    invoke-virtual {v0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Z)V

    .line 32
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/b;->a:Landroid/content/Context;

    check-cast p1, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->x()V

    goto/16 :goto_0

    .line 33
    :pswitch_6
    invoke-static {p0}, Les/sf0;->a(Lcom/jecelyin/editor/v2/ui/b;)V

    goto/16 :goto_0

    .line 34
    :pswitch_7
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/b;->d:Lcom/jecelyin/editor/v2/ui/a;

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/ui/a;->i()V

    goto/16 :goto_0

    .line 35
    :pswitch_8
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->d:Lcom/jecelyin/editor/v2/ui/a;

    iget-object v2, p1, Lcom/jecelyin/editor/v2/common/Command;->b:Landroid/os/Bundle;

    const-string v3, "is_cluster"

    invoke-virtual {v2, v3, v1}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z

    move-result v1

    iget-object p1, p1, Lcom/jecelyin/editor/v2/common/Command;->c:Ljava/lang/Object;

    check-cast p1, Lcom/jecelyin/editor/v2/common/c;

    invoke-virtual {v0, v1, p1}, Lcom/jecelyin/editor/v2/ui/a;->a(ZLcom/jecelyin/editor/v2/common/c;)V

    goto/16 :goto_0

    .line 36
    :pswitch_9
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/b;->a:Landroid/content/Context;

    invoke-static {p1}, Lcom/jecelyin/editor/v2/d;->a(Landroid/content/Context;)Lcom/jecelyin/editor/v2/d;

    move-result-object p1

    .line 37
    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/d;->x()Z

    move-result p1

    .line 38
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    invoke-virtual {v0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->setReadOnly(Z)V

    .line 39
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/b;->a:Landroid/content/Context;

    check-cast p1, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->x()V

    goto/16 :goto_0

    .line 40
    :pswitch_a
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    new-instance v0, Lcom/jecelyin/editor/v2/ui/b$k;

    invoke-direct {v0, p0}, Lcom/jecelyin/editor/v2/ui/b$k;-><init>(Lcom/jecelyin/editor/v2/ui/b;)V

    invoke-virtual {p1, v0}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->e(Lcom/jecelyin/editor/v2/widget/text/c;)V

    goto/16 :goto_0

    .line 41
    :pswitch_b
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->g()V

    goto/16 :goto_0

    .line 42
    :pswitch_c
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->h()V

    goto/16 :goto_0

    .line 43
    :pswitch_d
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    iget-object p1, p1, Lcom/jecelyin/editor/v2/common/Command;->b:Landroid/os/Bundle;

    const-string v1, "line"

    invoke-virtual {p1, v1}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result p1

    invoke-virtual {v0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(I)V

    goto/16 :goto_0

    :pswitch_e
    if-eqz v0, :cond_3

    .line 44
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/b;->a:Landroid/content/Context;

    sget v0, Lcom/jecelyin/editor/v2/m;->je_readonly_mode_not_support_this_action:I

    invoke-static {p1, v0}, Lcom/jecelyin/common/utils/e;->b(Landroid/content/Context;I)V

    goto/16 :goto_0

    .line 45
    :cond_3
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    iget-object p1, p1, Lcom/jecelyin/editor/v2/common/Command;->c:Ljava/lang/Object;

    check-cast p1, Ljava/lang/String;

    invoke-virtual {v0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Ljava/lang/String;)V

    goto :goto_0

    :pswitch_f
    if-eqz v0, :cond_4

    .line 46
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/b;->a:Landroid/content/Context;

    sget v0, Lcom/jecelyin/editor/v2/m;->je_readonly_mode_not_support_this_action:I

    invoke-static {p1, v0}, Lcom/jecelyin/common/utils/e;->b(Landroid/content/Context;I)V

    goto :goto_0

    .line 47
    :cond_4
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->e()V

    goto :goto_0

    :pswitch_10
    if-eqz v0, :cond_5

    .line 48
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/b;->a:Landroid/content/Context;

    sget v0, Lcom/jecelyin/editor/v2/m;->je_readonly_mode_not_support_this_action:I

    invoke-static {p1, v0}, Lcom/jecelyin/common/utils/e;->b(Landroid/content/Context;I)V

    .line 49
    :pswitch_11
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->o()Z

    move-result p1

    return p1

    .line 50
    :cond_5
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->l()Z

    move-result p1

    return p1

    :pswitch_12
    if-eqz v0, :cond_6

    .line 51
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/b;->a:Landroid/content/Context;

    sget v0, Lcom/jecelyin/editor/v2/m;->je_readonly_mode_not_support_this_action:I

    invoke-static {p1, v0}, Lcom/jecelyin/common/utils/e;->b(Landroid/content/Context;I)V

    .line 52
    :pswitch_13
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->c()Z

    move-result p1

    return p1

    .line 53
    :cond_6
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->d()Z

    move-result p1

    return p1

    :pswitch_14
    if-eqz v0, :cond_7

    .line 54
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/b;->a:Landroid/content/Context;

    sget v0, Lcom/jecelyin/editor/v2/m;->je_readonly_mode_not_support_this_action:I

    invoke-static {p1, v0}, Lcom/jecelyin/common/utils/e;->b(Landroid/content/Context;I)V

    goto :goto_0

    .line 55
    :cond_7
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->m()V

    goto :goto_0

    :pswitch_15
    if-eqz v0, :cond_8

    .line 56
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/b;->a:Landroid/content/Context;

    sget v0, Lcom/jecelyin/editor/v2/m;->je_readonly_mode_not_support_this_action:I

    invoke-static {p1, v0}, Lcom/jecelyin/common/utils/e;->b(Landroid/content/Context;I)V

    goto :goto_0

    .line 57
    :cond_8
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->q()V

    goto :goto_0

    .line 58
    :pswitch_16
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->p()V

    goto :goto_0

    .line 59
    :pswitch_17
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->j()V

    :goto_0
    const/4 p1, 0x1

    return p1

    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_17
        :pswitch_16
        :pswitch_15
        :pswitch_14
        :pswitch_12
        :pswitch_13
        :pswitch_10
        :pswitch_11
        :pswitch_f
        :pswitch_e
        :pswitch_d
        :pswitch_c
        :pswitch_b
        :pswitch_a
        :pswitch_9
        :pswitch_8
        :pswitch_7
        :pswitch_6
        :pswitch_5
        :pswitch_4
        :pswitch_3
        :pswitch_2
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method

.method public b()Landroid/content/Context;
    .locals 1

    .line 2
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->a:Landroid/content/Context;

    return-object v0
.end method

.method public b(Lcom/jecelyin/editor/v2/widget/text/c;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/jecelyin/editor/v2/widget/text/c<",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .line 3
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    invoke-virtual {v0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->e(Lcom/jecelyin/editor/v2/widget/text/c;)V

    return-void
.end method

.method public c()Ljava/lang/String;
    .locals 1

    .line 2
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->d:Lcom/jecelyin/editor/v2/ui/a;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    goto :goto_0

    :cond_0
    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/ui/a;->a()Ljava/lang/String;

    move-result-object v0

    :goto_0
    return-object v0
.end method

.method public d()Lcom/jecelyin/editor/v2/ui/JeEditorActivity;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->a:Landroid/content/Context;

    check-cast v0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;

    return-object v0
.end method

.method public e()Ljava/lang/String;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    if-nez v0, :cond_0

    const-string v0, ""

    return-object v0

    .line 2
    :cond_0
    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->getModeName()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public f()Ljava/lang/String;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->d:Lcom/jecelyin/editor/v2/ui/a;

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->e:Lcom/jecelyin/editor/v2/ui/b$s;

    iget-object v0, v0, Lcom/jecelyin/editor/v2/ui/b$s;->b:Ljava/io/File;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    goto :goto_0

    :cond_0
    invoke-virtual {v0}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    :cond_1
    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/ui/a;->d()Ljava/lang/String;

    move-result-object v0

    :goto_0
    return-object v0
.end method

.method public g()Ljava/lang/String;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->e:Lcom/jecelyin/editor/v2/ui/b$s;

    iget-object v0, v0, Lcom/jecelyin/editor/v2/ui/b$s;->c:Ljava/lang/String;

    return-object v0
.end method

.method public h()Ljava/lang/CharSequence;
    .locals 3

    const/4 v0, 0x4

    new-array v0, v0, [Ljava/lang/Object;

    .line 1
    invoke-virtual {p0}, Lcom/jecelyin/editor/v2/ui/b;->i()Z

    move-result v1

    if-eqz v1, :cond_0

    const-string v1, "*"

    goto :goto_0

    :cond_0
    const-string v1, ""

    :goto_0
    const/4 v2, 0x0

    aput-object v1, v0, v2

    const/4 v1, 0x1

    invoke-virtual {p0}, Lcom/jecelyin/editor/v2/ui/b;->g()Ljava/lang/String;

    move-result-object v2

    aput-object v2, v0, v1

    const/4 v1, 0x2

    iget-object v2, p0, Lcom/jecelyin/editor/v2/ui/b;->d:Lcom/jecelyin/editor/v2/ui/a;

    if-nez v2, :cond_1

    const-string v2, "UTF-8"

    goto :goto_1

    .line 2
    :cond_1
    invoke-virtual {v2}, Lcom/jecelyin/editor/v2/ui/a;->a()Ljava/lang/String;

    move-result-object v2

    :goto_1
    aput-object v2, v0, v1

    const/4 v1, 0x3

    .line 3
    invoke-virtual {p0}, Lcom/jecelyin/editor/v2/ui/b;->e()Ljava/lang/String;

    move-result-object v2

    aput-object v2, v0, v1

    const-string v1, "%s%s  \t|\t  %s \t %s"

    .line 4
    invoke-static {v1, v0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public i()Z
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->d:Lcom/jecelyin/editor/v2/ui/a;

    const/4 v1, 0x0

    if-nez v0, :cond_0

    return v1

    .line 2
    :cond_0
    iget-boolean v2, p0, Lcom/jecelyin/editor/v2/ui/b;->g:Z

    if-nez v2, :cond_1

    return v1

    .line 3
    :cond_1
    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/ui/a;->f()Z

    move-result v0

    return v0
.end method

.method public j()Z
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->k()Z

    move-result v0

    return v0
.end method

.method k()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->d:Lcom/jecelyin/editor/v2/ui/a;

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/ui/a;->b()Ljava/io/File;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 2
    iget-object v1, p0, Lcom/jecelyin/editor/v2/ui/b;->e:Lcom/jecelyin/editor/v2/ui/b$s;

    invoke-virtual {v0}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v1, Lcom/jecelyin/editor/v2/ui/b$s;->c:Ljava/lang/String;

    .line 3
    :cond_0
    invoke-direct {p0}, Lcom/jecelyin/editor/v2/ui/b;->s()V

    return-void
.end method

.method public l()V
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->c:Lcom/jecelyin/editor/v2/view/EditorView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/jecelyin/editor/v2/view/EditorView;->setLoading(Z)V

    .line 2
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->setEnabled(Z)V

    .line 3
    invoke-virtual {p0}, Lcom/jecelyin/editor/v2/ui/b;->k()V

    .line 4
    iput-boolean v1, p0, Lcom/jecelyin/editor/v2/ui/b;->g:Z

    .line 5
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->e:Lcom/jecelyin/editor/v2/ui/b$s;

    iget v1, v0, Lcom/jecelyin/editor/v2/ui/b$s;->i:I

    if-gtz v1, :cond_0

    iget v0, v0, Lcom/jecelyin/editor/v2/ui/b$s;->j:I

    if-lez v0, :cond_1

    .line 6
    :cond_0
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->c:Lcom/jecelyin/editor/v2/view/EditorView;

    new-instance v1, Lcom/jecelyin/editor/v2/ui/b$i;

    invoke-direct {v1, p0}, Lcom/jecelyin/editor/v2/ui/b$i;-><init>(Lcom/jecelyin/editor/v2/ui/b;)V

    const-wide/16 v2, 0x32

    invoke-virtual {v0, v1, v2, v3}, Landroid/widget/RelativeLayout;->postDelayed(Ljava/lang/Runnable;J)Z

    :cond_1
    return-void
.end method

.method public m()V
    .locals 2

    const/4 v0, 0x0

    .line 1
    iput-boolean v0, p0, Lcom/jecelyin/editor/v2/ui/b;->g:Z

    .line 2
    iget-object v1, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    invoke-virtual {v1, v0}, Landroid/webkit/WebView;->setEnabled(Z)V

    .line 3
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->c:Lcom/jecelyin/editor/v2/view/EditorView;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/jecelyin/editor/v2/view/EditorView;->setLoading(Z)V

    return-void
.end method

.method public n()Landroid/os/Parcelable;
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->e:Lcom/jecelyin/editor/v2/ui/b$s;

    .line 2
    iget-object v1, p0, Lcom/jecelyin/editor/v2/ui/b;->d:Lcom/jecelyin/editor/v2/ui/a;

    if-eqz v1, :cond_0

    .line 3
    invoke-virtual {v1, v0}, Lcom/jecelyin/editor/v2/ui/a;->a(Lcom/jecelyin/editor/v2/ui/b$s;)V

    .line 4
    :cond_0
    iget-boolean v1, p0, Lcom/jecelyin/editor/v2/ui/b;->g:Z

    if-eqz v1, :cond_2

    sget-boolean v1, Lcom/jecelyin/editor/v2/ui/b;->h:Z

    if-nez v1, :cond_2

    iget-object v1, p0, Lcom/jecelyin/editor/v2/ui/b;->d:Lcom/jecelyin/editor/v2/ui/a;

    if-eqz v1, :cond_2

    invoke-virtual {v1}, Lcom/jecelyin/editor/v2/ui/a;->b()Ljava/io/File;

    move-result-object v1

    if-eqz v1, :cond_2

    iget-object v1, p0, Lcom/jecelyin/editor/v2/ui/b;->a:Landroid/content/Context;

    invoke-static {v1}, Lcom/jecelyin/editor/v2/d;->a(Landroid/content/Context;)Lcom/jecelyin/editor/v2/d;

    move-result-object v1

    invoke-virtual {v1}, Lcom/jecelyin/editor/v2/d;->p()Z

    move-result v1

    if-eqz v1, :cond_2

    .line 5
    iget-object v1, p0, Lcom/jecelyin/editor/v2/ui/b;->a:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object v1

    iget v1, v1, Landroid/content/res/Configuration;->orientation:I

    .line 6
    iget v2, p0, Lcom/jecelyin/editor/v2/ui/b;->f:I

    if-eq v2, v1, :cond_1

    .line 7
    iput v1, p0, Lcom/jecelyin/editor/v2/ui/b;->f:I

    goto :goto_0

    .line 8
    :cond_1
    iget-object v1, p0, Lcom/jecelyin/editor/v2/ui/b;->d:Lcom/jecelyin/editor/v2/ui/a;

    invoke-virtual {v1}, Lcom/jecelyin/editor/v2/ui/a;->h()V

    :cond_2
    :goto_0
    return-object v0
.end method

.method public o()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->n()V

    return-void
.end method

.method public p()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->c:Lcom/jecelyin/editor/v2/view/EditorView;

    if-nez v0, :cond_0

    return-void

    .line 2
    :cond_0
    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/view/EditorView;->b()V

    return-void
.end method

.method public q()V
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    new-instance v1, Lcom/jecelyin/editor/v2/ui/b$j;

    invoke-direct {v1, p0}, Lcom/jecelyin/editor/v2/ui/b$j;-><init>(Lcom/jecelyin/editor/v2/ui/b;)V

    const/4 v2, 0x0

    const/16 v3, 0x32

    invoke-virtual {v0, v2, v3, v1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(IILcom/jecelyin/editor/v2/widget/text/c;)V

    return-void
.end method
